package com.galleryviewpager;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.galleryviewpager.b_wave.TestWaveActivity;
import com.galleryviewpager.c_circleprecent.TestCirclePercentActivity;
import com.galleryviewpager.d_chart.SimpleLineChartActivity;
import com.galleryviewpager.c_circleprecent.CirclePrecentActivity;
import com.galleryviewpager.d_chart.TestSimpleLineActivity;
import com.galleryviewpager.e_drawer_menu.DrawerMenuActivity;
import com.galleryviewpager.e_drawer_menu.TestDrawerMenuActivity;
import com.galleryviewpager.f_pane.PaneActivity;
import com.galleryviewpager.a_paopao.PaoPaoActivity;
import com.galleryviewpager.a_paopao.PaoPaoTestActivity;
import com.galleryviewpager.b_wave.WaveActivity;
import com.galleryviewpager.g_error.ErrorActivity;
import com.galleryviewpager.h_loading.LoadingActivity;
import com.galleryviewpager.i_bezier.BezierCurveActivity;
import com.galleryviewpager.i_wave_loading.WaveLoadingActivity;
import com.galleryviewpager.j_porterduffmode.Xfermodes;
import com.galleryviewpager.k_honeycomb.HoneyCombActivity;
import com.galleryviewpager.l_clean.CleanActivity;
import com.galleryviewpager.m_qq.QqMessageRemoveActivity;

/**
 * @link https://blog.csdn.net/wingichoy/article/category/6032967/1?
 */

public class MainActivity extends AppCompatActivity {


    private boolean isLaunchMyView = false;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }


    public void jumpToDetailActivity(View view) {
        if (isLaunchMyView) {
            switch (view.getId()) {
                case R.id.tv_paopao:
                    startActivity(new Intent(this, PaoPaoTestActivity.class));
                    break;
                case R.id.tv_wave:
                    startActivity(new Intent(this, TestWaveActivity.class));
                    break;
                case R.id.tv_circle:
                    startActivity(new Intent(this, TestCirclePercentActivity.class));
                    break;
                case R.id.tv_chart:
                    startActivity(new Intent(this, TestSimpleLineActivity.class));
                    break;
                case R.id.tv_drawer_menu:
                    startActivity(new Intent(this, TestDrawerMenuActivity.class));
                    break;
                case R.id.tv_pane:
                    startActivity(new Intent(this, PaneActivity.class));
                    break;
            }
        } else {
            switch (view.getId()) {
                case R.id.tv_paopao:
                    startActivity(new Intent(this, PaoPaoActivity.class));
                    break;
                case R.id.tv_wave:
                    startActivity(new Intent(this, WaveActivity.class));
                    break;
                case R.id.tv_circle:
                    startActivity(new Intent(this, CirclePrecentActivity.class));
                    break;
                case R.id.tv_chart:
                    startActivity(new Intent(this, SimpleLineChartActivity.class));
                    break;
                case R.id.tv_drawer_menu:
                    startActivity(new Intent(this, DrawerMenuActivity.class));
                    break;
                case R.id.tv_pane:
                    startActivity(new Intent(this, PaneActivity.class));
                    break;
                case R.id.tv_error:
                    startActivity(new Intent(this, ErrorActivity.class));
                    break;
                case R.id.tv_loading:
                    startActivity(new Intent(this, LoadingActivity.class));
                    break;
                case R.id.tv_bezier_curve:
                    startActivity(new Intent(this, BezierCurveActivity.class));
                    break;
                case R.id.tv_wave_loading:
                    startActivity(new Intent(this, WaveLoadingActivity.class));
                    break;
                case R.id.tv_porter_mode:
                    startActivity(new Intent(this, Xfermodes.class));
                    break;
                case R.id.tv_honey_comb:
                    startActivity(new Intent(this, HoneyCombActivity.class));
                    break;
                case R.id.tv_clean:
                    startActivity(new Intent(this, CleanActivity.class));
                    break;
                case R.id.tv_qq_curve:
                    startActivity(new Intent(this, QqMessageRemoveActivity.class));
                    break;
            }
        }
    }
}
